export interface BasicPageParams {
  page: number
  pageSize: number
}
/**
 * 分页数据类型
 */
export interface BasicFetchList<T> {
  total: number
  current_page: number
  offset: number
  per_page: number
  last_page: number
  data: T[]
}
/**
 * 分页模型数据
 */
export interface BasicFetchResult<T> {
  data: {
    list: BasicFetchList<T>
    detail: T
    data: T[] | T
  }
}
export interface BasicFetchUserInfoResult<T> {
  data: T
}

/**
 * 默认id类型
 */
export type BaseFormId = {
  id: string | number
}
/**
 * 默认表单类型
 */
export type BaseFormParams<T> = {
  form: T
  id?: string | number
}
